/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tracnghiem.service.impl;

import tracnghiem.dao.ConnectionManagement;
import tracnghiem.dom.LoginInfo;
import tracnghiem.service.LoginService;

/**
 *
 * @author tjtyler
 */
public class LoginServiceImpl implements LoginService{
    
    @Override
    public boolean checkLogin(LoginInfo loginInfo){
        ConnectionManagement.setPassword(loginInfo.getPass());
        ConnectionManagement.setUsername(loginInfo.getUsername());
        return ConnectionManagement.checkConnection();
    }
}
